package com.ruoyi.house_sale.mapper;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.house_sale.domain.CustomerInfo;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.house_sale.domain.Houseinfo;

import java.util.List;

public interface CustomerInfoMapper {

    /**
     *
     * @param custid 客户id
     * @return 根据id查询客户信息
     */
    public CustomerInfo selectCustomerInfoByCustid(Long custid);

    /**
     *
     * @param customerInfo 客户对象
     * @return 查询所有客户信息
     */

    public List<CustomerInfo> selectCustomerInfoList(CustomerInfo customerInfo);

    /**
     *
     * @param customerInfo 客户对象
     * @return 新增客户
     */
    public int insertCustomerInfo(CustomerInfo customerInfo);

    /**
     *
     * @param customerInfo  客户对象
     * @return 修改客户信息
     */
    public int updateCustomerInfo(CustomerInfo customerInfo);

    /**
     *
     * @param custid 客户id
     * @return 删除客户信息
     */
    public int deleteCustomerInfoByCustid(Long custid);

    /**
     *
     * @param custids  批量删除
     * @return  删除客户信息
     */
    public int deleteCustomerInfoByCustids(Long[] custids);

    public List<SysDept> selectUserList(SysDept dept);

    public List<Houseinfo> selectCustHouse(Houseinfo houseinfo);

    public CustomerInfo insertCustEvent();
    public List<SysUser> selectUser(Long  deptid);
}
